package cn.lzj.ymcc.dto;

import lombok.Data;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotEmpty;

@Data
@Component
public class SmsCodeDto {
    @NotEmpty(message = "验证码不能为空！！！")
    private String imageCode;
    @NotEmpty(message = "非法请求！！")
    private String imageCodeKey;
    @NotEmpty(message = "手机号码不能为空！！")
    //@Pattern(regexp = "^[1]\\\\d{10}$",message ="手机号码格式不正确！！" )
    private String mobile;
}
